﻿using Ecommerce.Domain.User;
using Ecommerce.Repository;
using Ecommerce.Repository.Interface.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ecommerce.Repository.Impl.Use
{
    public class CountRepository : BaseRepository<County>, ICountyRepository
    {
        public CountRepository(EFContext context) : base(context)
        {

        }
        public Task<List<County>> GetCountie()
        {
            return GetAllAsync();
        }
        public Task<List<County>> GetCounties(int Uid)
        {
            return GetAsync(w => w.Uid == Uid);
        }
    }
}
